package cn.zane.designPattern.behaviorPatterns.commandPatterns.design.cuisine.impl;

import cn.zane.designPattern.behaviorPatterns.commandPatterns.design.cock.ICook;
import cn.zane.designPattern.behaviorPatterns.commandPatterns.design.cuisine.ICuisine;

/**
 * @author zane
 * @date 2025/01/22
 * @Description 粤菜
 */
public class GuangDoneCuisine implements ICuisine {

    // 每个菜品都有相对应的一个厨师类，并通过厨师类进行操作命令（烹饪菜品）
    private ICook cook;

    public GuangDoneCuisine(ICook cook) {
        this.cook = cook;
    }

    public void cook() {
        cook.doCooking();
    }

}
